//
//  PickerViewTestViewController.swift
//  sss
//
//  Created by hrrMac on 2020/6/3.
//  Copyright © 2020 hrrMac. All rights reserved.
//

import UIKit

class PickerViewTestViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        do {
            let btn = UIButton()
            btn.yo.text("第一个按钮").textColor("ff0000").backgroundColor("FFFF00")
            view.addSubview(btn)
            
            btn.snp.makeConstraints { (make) in
                make.left.equalTo(50)
                make.top.equalTo(50)
                make.size.equalTo(100)
            }
            
            btn.btnTouch { [self] in
                self.show1()
            };
        }
        // Do any additional setup after loading the view.
    }


    func show1(){
        let dialog = SexPickerView.showSexPicker(1)
        dialog.sureBlock = { [self] in
            print($0,$1)
            
        }
        
        
//        dialog.yoCancelClickBtnClick{
//            
//        }
//        (dialog.sureBlock ?? <#default value#>)(){
//            print($1,$2)
//        }
//        dialog.sureClickBlock
////        dialog.sureCli
//        dialog.sureClickBlock{ (index,content) in
//            print(index,content)
//        }
    }


}
